Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

272
Vistas
Postgres Unhandled rejection error: relation "public.role" does not exist

I am trying to connect to postgresql through Node.JS (LoopBack framework) in windows but when I try to access the database this error will occur:

Unhandled rejection error: relation "public.role" does not exist
at Connection.parseE (\node_modules\pg\lib\connetion.js:569:11)
at Connection.parseMessage (\node_modules\pg\lib\connection.js:396:17)
at Socket.<anonymous> (\node_modules\pg\lib\connection.js:132:22)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at TCP.onread (net.js:548:20)
over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

That looks like invalid escaping for schema + table. What you probably wanted was: "public"."role", as in schema + table, and not "public.role" as a table name.

over 4 years ago · Santiago Trujillo Denunciar

0

As one of the pg module developer said:

"It looks like you're trying to query a table "role" that doesn't exist in the database you're connecting to."

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda